import type PageContent from '@/components/PageContent/index.vue'
import type { IObject } from '@/type'
function usePageSearch() {
    const contentRef = ref<InstanceType<typeof PageContent>>()
    // 搜索
    function handleQueryClick(queryParams: IObject) {
        console.log('handleQueryClick', queryParams)
        // contentRef.value?.fetchPageData(queryParams, true)
        contentRef.value?.fetchPageData()
    }
    // 重置
    function handleResetClick() {
        // contentRef.value?.fetchPageData({}, true)
        contentRef.value?.fetchPageData()
    }
    return {
        handleQueryClick,
        handleResetClick,
    }
}
export default usePageSearch
